#ifndef POINTCAHE_H
#define POINTCAHE_H

#include <math.h>	// For fabs
#include "TheUser.h"
#define DIMENSION 3

class Point_Cache:public CGeoCache
{
public:
	Point_Cache();
	virtual ~Point_Cache();
	Point_Cache(int * nverts_p,C3Point** vertex_pp, RC & rc);
	RC MakeRoom();
	RC Accept(const C3Point& Point,double rDenominator);
	RC Add(C3Point point);
	RC YieldPoints(int * nverts_p,C3Point** vertex_pp);
	BOOL Started()
	{
		return m_nCount > 0;
	}
protected:
	int m_nAllocated;// Number of points allocated
	int m_nCount;// Number of points cached so far
	C3Point* m_pPoints;// The points
};
#endif